package com.cloudmusic.service;

import java.util.List;
import java.util.Map;

import com.cloudmusic.entity.User;

public interface UserService extends BaseService<User> {
	
	User getUserById(Integer id);
	
	String isExitUserName(String signInUserName);
	
	List<Map<String, Object>> getUserList();
	
	List<User> getUsersList(String username);
	
	List<Map<String,Object>> findSongLists(Object userId);

	void userSignIn(User newuser, String uid, String likelid, String collectionlid,String historylid);

	//通过userid查找用户历史歌单id
	String selectUserHistoryListId(String uid);

	//播放音乐记录音乐播放记录
	void playMusic(String historylid,String sid);

	//修改用户个人信息
	void updateUserInfo(String nname,String sex ,String phone ,String email,String uid);

	//查找用户个人信息
	List<Map<String, Object>> selectUserInfo(String uid);

	//注销用户
	int banUser(String uid);

	//修改用户密码
	int changeUserPassword(String uid,String oldpassword,String newpassword);

}
